NetworkClient

StockSharp.Fix.Native

Abstract base class for UDP network clients.

継承元: BaseLogReceiver

実装: INetworkClient, ILogReceiver, ILogSource, IDisposable, IPacketProcessor

コンストラクター

NetworkClient(IUdpDialect, string, MulticastSourceAddress, Func<T, IMemoryOwner<byte>, List<Message>, bool>, IPacketReceiverFactory)

Initializes a new instance of the NetworkClient class.

dialect
The UDP dialect.
name
The client name.
address
The multicast source address.
processMessage
Function to process received messages.
receiverFactory
IPacketReceiverFactory

プロパティ

Dialect : IUdpDialect

Gets the UDP dialect associated with this client.

FullMode : PacketQueueFullModes

Behavior when the packet queue is full.

IsEnabled : bool

Enabled.

MaxIncomingQueueSize : int

Maximum buffered incoming UDP packets per feed before new packets are dropped.

MaxUdpDatagramSize : int

Maximum UDP datagram size.

Name : string

Gets the client name.

メソッド

AllocatePacket(int) : IMemoryOwner<byte>

To allocate a packet of the specified size.

size
The size of the packet to allocate.

戻り値: The packet.

Connect()

Connect to trading system.

Disconnect()

Disconnect from trading system.

DisposeManaged()

Release resources.

DisposePacket(IMemoryOwner<byte>, string)

Disposes the packet with the specified reason.

packet
The packet.
reason
The specified reason.
ErrorHandler(Exception, int, bool)

Handles errors that occur during packet processing.

e
The exception encountered.
numErrors
The error count.
isFatal
Indicates whether the error is fatal.